package club.pchome.common.util;

public class TicketUtil {

	public String addLoginTicket(int userId){
		return null;
//		LoginTicket loginTicket = new LoginTicket();
//		loginTicket.setUserId(userId);
//		Date date = new Date();
//		date.setTime(date.getTime()+1000*3600*30);
//		loginTicket.setExpired(date);
//		loginTicket.setStatus(0);
//		loginTicket.setTicket(UUID.randomUUID().toString().replaceAll("-",""));
//
//		System.out.println("生成ticket: "+ JSONObject.toJSONString(loginTicket));
//		//int a=loginTicketDao.insertLoginticket(loginTicket);
//		//System.out.println("ticket插入结果: "+a);
//
//		//return loginTicket.getTicket();
//		return loginTicket;
	}
}

